<!--
/**************************************************
* @(#)productupload.jsp
*
* Copyright (c) 2005 Hitrust Technology Inc.
* Developed by SDC, Hitrust.
* All Rights Reserved.
*
* Modify History:
*  v1.00, 2006-02-20, owen
/**************************************************
-->
<%@ page contentType="text/html; charset=UTF-8" %>
<html>
<head>
<title>批量导产品</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<%@ include file="../common.jsp" %>
<LINK href="<%=root%>/css/caigouxitong.css" type=text/css rel=stylesheet>
<SCRIPT language="JavaScript" src="<%=root%>/js/common.js"></SCRIPT>
</HEAD>
<script language=javascript>
	function process(){
		if(form1.theFile.value == null ||　form1.theFile.value == ""){
			form1.theFile.focus();
			alert("上传文件必输");
			return;			
		}
		form1.action="<%= response.encodeURL(request.getContextPath() + "/A401102.do") %>"
		form1.submit();
	}
	var fields = new Array();
<% 
   
   //获取表单输入错误信息
   Object tObj = request.getAttribute("_error");
   HashMap tMap = null;
   StringBuffer tErrors = new StringBuffer();
   int i=0;
   if(tObj !=null && tObj instanceof HashMap) {
       tMap = (HashMap)tObj;
       Collection tCollection = tMap.keySet();
       Iterator tIterator = tCollection.iterator();		        
       while (tIterator.hasNext()) { // 标签
           String tKey = (String) tIterator.next();	           
%>
	fields[<%=i %>]="<%=tKey%>_font";
<%
		   i ++;
	       String tMsg = (String)tMap.get(tKey);
	       tErrors.append(tMsg);
	       tErrors.append("<br/>");
       }
   }
 %>
 </script>
 <%
   //获取成功信息
   String tSuccess = (String) request.getAttribute("_success");
   if(tSuccess == null) tSuccess = "";
 %>
<body   BGCOLOR=#f2f2f2 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 >
<p><br></p>

<table width="90%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="20"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="1">
        <tr height="20">
          <td height="20" width="1" class="mtxt_black">&nbsp;</td>
          <td height="30" width="758" class="mtxt_black">批量导入产品</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td class="bg_line" height="2"></td>
  </tr>
</table>
<center>
<form name="form1" method="post" ENCTYPE="multipart/form-data">

<table border="0" width="90%" id="table1" cellspacing="0" cellpadding="0">
<%if(tObj!=null){%>
	<tr>
		<td colspan="3"><font color="red">&nbsp;<%=tErrors.toString() %></font></td>
	</tr>
<%}%>
	<tr>
		<td width="10%">
		<font id="formfile_font" name="formfile_font" color="#000000">批量文件</font><font id="formfile_font1" name="formfile_font" color="#000000"></font></td>
		<td width="88%">&nbsp;<INPUT type="file" size="50" name="theFile"></td>
		<td width="2%">&nbsp;</td>
	</tr>
	<tr>
		<td width="10%" align=left></td>
		<td width="88%">&nbsp;</td>
		<td width="2%">&nbsp;</td>
	</tr>
	<tr>
		<td width="10%" height="32">&nbsp;</td>
		<td height="32" width="88%">&nbsp; <input type="button" class="kuang" value="导入" onClick="return process();">	</td>
		<td height="32" width="2%">&nbsp;</td>
	</tr>
	<tr>
		<td width="10%">&nbsp;</td>
		<td width="88%">&nbsp;</td>
		<td width="2%">&nbsp;</td>
	</tr>
</table>
</form>
</center>
<br>

</body>
</html>